local plr = owner char = plr.Character local huma = char.Humanoid root = huma.RootPart for i,v in pairs(char:GetDescendants()) do if v:IsA("BasePart") or v:IsA("Decal") then v.Transparency = 1 end end local att0 = Instance.new("Attachment",root) local att1 = Instance.new("Attachment",root) att0.Position = Vector3.new(0, 7, -0) att1.Position = Vector3.new(-0, -3, 0) att0.Visible = false att1.Visible = false mas = char Beam0 = Instance.new("Beam") Beam0.Parent = mas Beam0.Attachment0 = att0 Beam0.Attachment1 = att1 Beam0.FaceCamera = true Beam0.Segments = 1 Beam0.Texture = "rbxassetid://10809612624" Beam0.TextureSpeed = 0 Beam0.Transparency = NumberSequence.new(0,0) Beam0.Width0 = 10 Beam0.Width1 = 10 huma.JumpPower = 100 script.Parent = char local humanoids = {} local parts = {} local add = function(v) if v:IsA("Humanoid") then table.insert(humanoids,v) end end local add2 = function(v) if v:IsA("BasePart") then table.insert(parts,v) end end for i,v in pairs(workspace:GetDescendants()) do add(v) add2(v) end workspace.DescendantAdded:Connect(function(v) add(v) add2(v) end) local density = 0 local friction = 0 local elasticity = 0 local frictionweight =0 local elasticityweight =0 local physProperties = PhysicalProperties.new(density, friction, elasticity, frictionweight, elasticityweight) for i,v in pairs(char:GetDescendants()) do if v:IsA("BasePart") then v.CustomPhysicalProperties = physProperties end end local b = Instance.new("Sound",root) b.Looped = true b.Volume = 10 b.SoundId = "rbxassetid://7338423047" b.MinDistance = 1 b.MaxDistance = 200 b:Play() local aee = Instance.new("BodyForce",root) aee.Force = Vector3.new(0,25,0) local target local findnearest = function(range,target) local range = range local closest for i, enemy in pairs(humanoids) do if enemy.Parent == nil then table.remove(humanoids,i) break end if not enemy:IsDescendantOf(char) then pcall(function() local distance = (target.Position - enemy.RootPart.Position).Magnitude if distance < range then range = distance -- set new 'distance to beat' to the current one closest = enemy end end) end end return closest end huma.WalkSpeed =5 local parttarget local findnearestpart = function(range,target) local range = range local closest for i ,part in pairs(parts) do if part.Parent == nil then table.remove(parts,i) break end if not part:IsDescendantOf(char) then pcall(function() local distance = (target.Position - part.Position).Magnitude if distance < range then range = distance closest = part end end) end end return closest end NLS([[ local plr = owner char = plr.Character local huma = char.Humanoid root = huma.RootPart local a = Instance.new("BodyVelocity",root) a.Velocity = Vector3.new(0,0,0) a.MaxForce = Vector3.new(75,0,75) local speed = 0 local rootpos while task.wait() do if huma.MoveDirection.Magnitude > 0 then rootpos = root.Position a.Velocity = huma.MoveDirection * speed if speed < 350 then speed = speed + 5 end end if huma.MoveDirection.Magnitude == 0 then speed = 0 if rootpos then a.Velocity = -(root.Position - rootpos).unit * 250 end end if huma:GetState() == Enum.HumanoidStateType.PlatformStanding or huma:GetState() == Enum.HumanoidStateType.Seated or huma:GetState() == Enum.HumanoidStateType.FallingDown then huma:ChangeState(Enum.HumanoidStateType.Running) end end ]],script) local speed = 0 local active = false plr.Chatted:Connect(function(msg) local sub = msg:sub(1,#msg) if sub == "enable" then active = true print'eg' end if sub == "disable" then active = false end end) while task.wait() do if huma.MoveDirection.Magnitude > 0 then if speed < 250 then speed = speed + 2 end end if huma.MoveDirection.Magnitude == 0 then speed = 0 end target = findnearest(speed/10,root) parttarget = findnearestpart(speed/10,root) if active then if target then local chare = target.Parent local humat = chare:FindFirstChildOfClass("Humanoid") if humat.Health ~= 0 then local ae = Instance.new("Sound",chare.Head) ae.SoundId = "rbxassetid://7837490457" ae.Volume = 1 ae.Pitch = .7 ae:Play() local be = Instance.new("Sound",chare.Head) be.SoundId = "rbxassetid://9113543057" be.Volume = 3 be:Play() spawn(function() wait(2) be:Destroy() be:Destroy() end) end if humat.Health ~= 0 then local hbp = Instance.new("BodyVelocity",humat.RootPart) hbp.MaxForce = Vector3.new(math.huge,math.huge,math.huge) hbp.Velocity = (root.Position - humat.RootPart.Position).unit * -75 *huma.WalkSpeed/2 Vector3.new(0,75,0) spawn(function() wait(.1) hbp:Destroy() end) end for i,v in pairs(chare:GetDescendants()) do if v:IsA("Motor6D") and v.Name ~= "Root" then local s = Instance.new("BallSocketConstraint") local a1 = Instance.new("Attachment") local a2 = Instance.new("Attachment") a1.Parent = v.Part0 a2.Parent =v.Part1 s.Parent = v.Parent s.Attachment0 = a1 s.Attachment1 = a2 a1.CFrame = v.C0 a2.CFrame = v.C1 s.LimitsEnabled = true s.TwistLimitsEnabled = true v.Enabled = false spawn(function() wait(5) s:Destroy() a1:Destroy() a2:Destroy() v.Enabled = true char.Humanoid.PlatformStand = false end) end end chare:BreakJoints() humat.Health = 0 end if parttarget then if parttarget.Parent:FindFirstChildOfClass("Humanoid") == nil and parttarget.ClassName ~= "Accessory" and parttarget.Parent.ClassName ~= "Tool" and parttarget.Name ~= "Base" then if parttarget.Anchored == true then if parttarget.Material == Enum.Material.Metal or parttarget.Material == Enum.Material.CorrodedMetal or parttarget.Material == Enum.Material.DiamondPlate then local targpart = parttarget local targpartcf = parttarget.CFrame parttarget.Anchored = false parttarget.Velocity = (parttarget.Position - root.Position).unit * 100 + Vector3.new(0,25,0) parttarget.CanCollide = false local a = Instance.new("Sound",parttarget) a.Volume = 10 a.Pitch = .5 a.SoundId = "rbxassetid://9116673678" a:Play() spawn(function() wait(.2) targpart.CanCollide = true wait(10) targpart.CFrame = targpartcf targpart.Anchored = true targpart.Velocity= Vector3.new(0,0,0) targpart.AssemblyAngularVelocity = Vector3.new(0,0,0) end) end end if parttarget.Anchored == false then parttarget.Velocity = (parttarget.Position - root.Position).unit * 100 + Vector3.new(0,25,0) end end end end end